package com.lxd.annotaion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author Dongdong
 * @注释 全局拦截器
 */
@Target(ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface GlobalInterceptor {
    //检查是否登录，默认要检查为true
    boolean checkLogin() default true;
    boolean checkAdmin() default false;
}
